package com.mallcai.bigdata.uid.worker;

import com.mallcai.bigdata.uid.utils.ValuedEnum;

/**
 * described :
 * Created by oneape<oneape15@163.com> on 2019-04-04 11:02.
 * Modify:
 */
public enum WorkerNodeType implements ValuedEnum<Integer> {
    // 容器模式, 如 Docker
    CONTAINER(1),
    // 真实物理机
    ACTUAL(2);

    /**
     * Lock type
     */
    private final Integer type;

    WorkerNodeType(Integer type) {
        this.type = type;
    }

    @Override
    public Integer value() {
        return this.type;
    }
}
